package com.zoo.boot.model;

import java.util.ArrayList;
import java.util.List;

public class LFoodsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public LFoodsExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andSupplierIdIsNull() {
            addCriterion("supplier_id is null");
            return (Criteria) this;
        }

        public Criteria andSupplierIdIsNotNull() {
            addCriterion("supplier_id is not null");
            return (Criteria) this;
        }

        public Criteria andSupplierIdEqualTo(String value) {
            addCriterion("supplier_id =", value, "supplierId");
            return (Criteria) this;
        }

        public Criteria andSupplierIdNotEqualTo(String value) {
            addCriterion("supplier_id <>", value, "supplierId");
            return (Criteria) this;
        }

        public Criteria andSupplierIdGreaterThan(String value) {
            addCriterion("supplier_id >", value, "supplierId");
            return (Criteria) this;
        }

        public Criteria andSupplierIdGreaterThanOrEqualTo(String value) {
            addCriterion("supplier_id >=", value, "supplierId");
            return (Criteria) this;
        }

        public Criteria andSupplierIdLessThan(String value) {
            addCriterion("supplier_id <", value, "supplierId");
            return (Criteria) this;
        }

        public Criteria andSupplierIdLessThanOrEqualTo(String value) {
            addCriterion("supplier_id <=", value, "supplierId");
            return (Criteria) this;
        }

        public Criteria andSupplierIdLike(String value) {
            addCriterion("supplier_id like", value, "supplierId");
            return (Criteria) this;
        }

        public Criteria andSupplierIdNotLike(String value) {
            addCriterion("supplier_id not like", value, "supplierId");
            return (Criteria) this;
        }

        public Criteria andSupplierIdIn(List<String> values) {
            addCriterion("supplier_id in", values, "supplierId");
            return (Criteria) this;
        }

        public Criteria andSupplierIdNotIn(List<String> values) {
            addCriterion("supplier_id not in", values, "supplierId");
            return (Criteria) this;
        }

        public Criteria andSupplierIdBetween(String value1, String value2) {
            addCriterion("supplier_id between", value1, value2, "supplierId");
            return (Criteria) this;
        }

        public Criteria andSupplierIdNotBetween(String value1, String value2) {
            addCriterion("supplier_id not between", value1, value2, "supplierId");
            return (Criteria) this;
        }

        public Criteria andProductCodeIsNull() {
            addCriterion("product_code is null");
            return (Criteria) this;
        }

        public Criteria andProductCodeIsNotNull() {
            addCriterion("product_code is not null");
            return (Criteria) this;
        }

        public Criteria andProductCodeEqualTo(String value) {
            addCriterion("product_code =", value, "productCode");
            return (Criteria) this;
        }

        public Criteria andProductCodeNotEqualTo(String value) {
            addCriterion("product_code <>", value, "productCode");
            return (Criteria) this;
        }

        public Criteria andProductCodeGreaterThan(String value) {
            addCriterion("product_code >", value, "productCode");
            return (Criteria) this;
        }

        public Criteria andProductCodeGreaterThanOrEqualTo(String value) {
            addCriterion("product_code >=", value, "productCode");
            return (Criteria) this;
        }

        public Criteria andProductCodeLessThan(String value) {
            addCriterion("product_code <", value, "productCode");
            return (Criteria) this;
        }

        public Criteria andProductCodeLessThanOrEqualTo(String value) {
            addCriterion("product_code <=", value, "productCode");
            return (Criteria) this;
        }

        public Criteria andProductCodeLike(String value) {
            addCriterion("product_code like", value, "productCode");
            return (Criteria) this;
        }

        public Criteria andProductCodeNotLike(String value) {
            addCriterion("product_code not like", value, "productCode");
            return (Criteria) this;
        }

        public Criteria andProductCodeIn(List<String> values) {
            addCriterion("product_code in", values, "productCode");
            return (Criteria) this;
        }

        public Criteria andProductCodeNotIn(List<String> values) {
            addCriterion("product_code not in", values, "productCode");
            return (Criteria) this;
        }

        public Criteria andProductCodeBetween(String value1, String value2) {
            addCriterion("product_code between", value1, value2, "productCode");
            return (Criteria) this;
        }

        public Criteria andProductCodeNotBetween(String value1, String value2) {
            addCriterion("product_code not between", value1, value2, "productCode");
            return (Criteria) this;
        }

        public Criteria andMenuItemIsNull() {
            addCriterion("menu_item is null");
            return (Criteria) this;
        }

        public Criteria andMenuItemIsNotNull() {
            addCriterion("menu_item is not null");
            return (Criteria) this;
        }

        public Criteria andMenuItemEqualTo(Integer value) {
            addCriterion("menu_item =", value, "menuItem");
            return (Criteria) this;
        }

        public Criteria andMenuItemNotEqualTo(Integer value) {
            addCriterion("menu_item <>", value, "menuItem");
            return (Criteria) this;
        }

        public Criteria andMenuItemGreaterThan(Integer value) {
            addCriterion("menu_item >", value, "menuItem");
            return (Criteria) this;
        }

        public Criteria andMenuItemGreaterThanOrEqualTo(Integer value) {
            addCriterion("menu_item >=", value, "menuItem");
            return (Criteria) this;
        }

        public Criteria andMenuItemLessThan(Integer value) {
            addCriterion("menu_item <", value, "menuItem");
            return (Criteria) this;
        }

        public Criteria andMenuItemLessThanOrEqualTo(Integer value) {
            addCriterion("menu_item <=", value, "menuItem");
            return (Criteria) this;
        }

        public Criteria andMenuItemIn(List<Integer> values) {
            addCriterion("menu_item in", values, "menuItem");
            return (Criteria) this;
        }

        public Criteria andMenuItemNotIn(List<Integer> values) {
            addCriterion("menu_item not in", values, "menuItem");
            return (Criteria) this;
        }

        public Criteria andMenuItemBetween(Integer value1, Integer value2) {
            addCriterion("menu_item between", value1, value2, "menuItem");
            return (Criteria) this;
        }

        public Criteria andMenuItemNotBetween(Integer value1, Integer value2) {
            addCriterion("menu_item not between", value1, value2, "menuItem");
            return (Criteria) this;
        }

        public Criteria andFoodDescIsNull() {
            addCriterion("food_desc is null");
            return (Criteria) this;
        }

        public Criteria andFoodDescIsNotNull() {
            addCriterion("food_desc is not null");
            return (Criteria) this;
        }

        public Criteria andFoodDescEqualTo(String value) {
            addCriterion("food_desc =", value, "foodDesc");
            return (Criteria) this;
        }

        public Criteria andFoodDescNotEqualTo(String value) {
            addCriterion("food_desc <>", value, "foodDesc");
            return (Criteria) this;
        }

        public Criteria andFoodDescGreaterThan(String value) {
            addCriterion("food_desc >", value, "foodDesc");
            return (Criteria) this;
        }

        public Criteria andFoodDescGreaterThanOrEqualTo(String value) {
            addCriterion("food_desc >=", value, "foodDesc");
            return (Criteria) this;
        }

        public Criteria andFoodDescLessThan(String value) {
            addCriterion("food_desc <", value, "foodDesc");
            return (Criteria) this;
        }

        public Criteria andFoodDescLessThanOrEqualTo(String value) {
            addCriterion("food_desc <=", value, "foodDesc");
            return (Criteria) this;
        }

        public Criteria andFoodDescLike(String value) {
            addCriterion("food_desc like", value, "foodDesc");
            return (Criteria) this;
        }

        public Criteria andFoodDescNotLike(String value) {
            addCriterion("food_desc not like", value, "foodDesc");
            return (Criteria) this;
        }

        public Criteria andFoodDescIn(List<String> values) {
            addCriterion("food_desc in", values, "foodDesc");
            return (Criteria) this;
        }

        public Criteria andFoodDescNotIn(List<String> values) {
            addCriterion("food_desc not in", values, "foodDesc");
            return (Criteria) this;
        }

        public Criteria andFoodDescBetween(String value1, String value2) {
            addCriterion("food_desc between", value1, value2, "foodDesc");
            return (Criteria) this;
        }

        public Criteria andFoodDescNotBetween(String value1, String value2) {
            addCriterion("food_desc not between", value1, value2, "foodDesc");
            return (Criteria) this;
        }

        public Criteria andPriceIsNull() {
            addCriterion("price is null");
            return (Criteria) this;
        }

        public Criteria andPriceIsNotNull() {
            addCriterion("price is not null");
            return (Criteria) this;
        }

        public Criteria andPriceEqualTo(Double value) {
            addCriterion("price =", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotEqualTo(Double value) {
            addCriterion("price <>", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThan(Double value) {
            addCriterion("price >", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThanOrEqualTo(Double value) {
            addCriterion("price >=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThan(Double value) {
            addCriterion("price <", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThanOrEqualTo(Double value) {
            addCriterion("price <=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceIn(List<Double> values) {
            addCriterion("price in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotIn(List<Double> values) {
            addCriterion("price not in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceBetween(Double value1, Double value2) {
            addCriterion("price between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotBetween(Double value1, Double value2) {
            addCriterion("price not between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andPriceIncreaceIsNull() {
            addCriterion("price_increace is null");
            return (Criteria) this;
        }

        public Criteria andPriceIncreaceIsNotNull() {
            addCriterion("price_increace is not null");
            return (Criteria) this;
        }

        public Criteria andPriceIncreaceEqualTo(Double value) {
            addCriterion("price_increace =", value, "priceIncreace");
            return (Criteria) this;
        }

        public Criteria andPriceIncreaceNotEqualTo(Double value) {
            addCriterion("price_increace <>", value, "priceIncreace");
            return (Criteria) this;
        }

        public Criteria andPriceIncreaceGreaterThan(Double value) {
            addCriterion("price_increace >", value, "priceIncreace");
            return (Criteria) this;
        }

        public Criteria andPriceIncreaceGreaterThanOrEqualTo(Double value) {
            addCriterion("price_increace >=", value, "priceIncreace");
            return (Criteria) this;
        }

        public Criteria andPriceIncreaceLessThan(Double value) {
            addCriterion("price_increace <", value, "priceIncreace");
            return (Criteria) this;
        }

        public Criteria andPriceIncreaceLessThanOrEqualTo(Double value) {
            addCriterion("price_increace <=", value, "priceIncreace");
            return (Criteria) this;
        }

        public Criteria andPriceIncreaceIn(List<Double> values) {
            addCriterion("price_increace in", values, "priceIncreace");
            return (Criteria) this;
        }

        public Criteria andPriceIncreaceNotIn(List<Double> values) {
            addCriterion("price_increace not in", values, "priceIncreace");
            return (Criteria) this;
        }

        public Criteria andPriceIncreaceBetween(Double value1, Double value2) {
            addCriterion("price_increace between", value1, value2, "priceIncreace");
            return (Criteria) this;
        }

        public Criteria andPriceIncreaceNotBetween(Double value1, Double value2) {
            addCriterion("price_increace not between", value1, value2, "priceIncreace");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}